<div class="fadeIn">
    <br>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage>
        </li>
        <li class="active">监控工作台 / 短信平台监控 / 接入汇总监控</li>
    </ol>

    <div ng-init="now=0;">
        <ul class="btn-groupTab clearfix">
            <li style='width:15%' class="{{now==0?'activeTab':''}}" ng-click="now=0"><a>发送短信</a></li>
            <li style='width:15%' class="{{now==1?'activeTab':''}}" ng-click="now=1"><a>接收短信</a></li>
            <!--  <input type="button" value="Tab3" class="{{now==2?'activeTab':''}}" ng-click="now=2"> -->
        </ul>
        <div class="contentTab" ng-show="now==0">
            <form class="form-inline clearfix">
                <div class="marT15 marR10 left">
                    <span class="search-name">时间选择</span>
                    <div class="controls">
                        <div class="input-prepend input-group">
                            <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input
                                type="text" readonly style="width: 155px" name="reservation" id="joinMonitorDate" class="form-control"
                                value="2017-3-21 - 2017-5-21" />
                            <span class="input-group-addon" ng-click='clearTime()'>清空</span>
                        </div>
                    </div>
                </div>
                <a class=" btn btn-primary btn-sm left marT15" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
                <div class="right marT15" style="position:relative">
                    <button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;"
                            src="img/excel.png">导出表格<span ng-style='loadStyle' class="outExcelLoad"><img src="img/load.gif"></span>
                    </button>
                </div>

            </form>

            <form method="post" id="form" action="accessReport/out-excel">
                <input type="text" style="display: none;" ng-model='searchData.startDate' name="startDate">
                <input type="text" style="display: none;" ng-model='searchData.endDate' name="endDate">
            </form>

            <div class="table-box marT15">

                <table class="table table-bordered table-striped text-center bg-info">
                    <thead>
                        <tr class="info">
                            <th class="text-center">序号</th>
                            <th class="text-center w85">日期</th>
                            <!-- <th class="text-center w140">历史连接业务端数(个)</th>
            <th class="text-center w150">目前在连接业务端数(个)</th> -->
                            <th class="text-center w150">连接业务端数(个)</th>
                            <th class="text-center w115">共发短信(条)</th>
                            <th class="text-center w140">峰值速率条(条/秒)</th>
                            <!--  <th class="text-center">缓存队列(条)</th> -->
                            <th class="text-center w140">发送成功短信(条)</th>
                            <th class="text-center w140">发送失败短信(条)</th>
                            <th class="text-center w85">发送成功率</th>
                            <th class="text-center w140">用户接收成功短信(条)</th>
                            <th class="text-center w140">用户接收失败短信(条)</th>
                            <th class="text-center w140">待返回结果短信(条)</th>
                            <!--  <th class="text-center w140">接收短信(条)</th> -->
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat='item in result.list'>
                            <td>{{$index+1}}</td>
                            <td>{{item.sday}}</td>
                            <td>
                                <a ng-click=goBusiness()>{{item.svrNodeNum}}</a></td>
                            <td>{{item.total}}</td>
                            <td>{{item.peakRate}}</td>
                            <!--  <td class="w115">{{item.}}</td> -->
                            <td>{{item.sendSuc}}</td>
                            <td>{{item.sendFail}}</td>
                            <td>{{item.sendSucRate}}</td>
                            <td>{{item.recvSuc}}</td>
                            <td>{{item.recvFail}}</td>
                            <td>{{item.recvNone}}</td>
                            <!--    <td>{{item.upTotal}}</td> -->
                        </tr>



                        <tr>
                            <!-- <td></td> -->
                            <td colspan="2">汇总</td>
                            <td>{{result.svrNodeCount}}</td>
                            <!--  <td>{{result.svrNodeCount}}</td> -->
                            <td>{{result.totalCount}}</td>
                            <td>{{result.peakRateCount}}</td>
                            <td>{{result.sendSucCount}}</td>
                            <td>{{result.sendFailCount}}</td>
                            <!--   <td></td> -->
                            <td>{{result.sendSucRateCount}}</td>
                            <td>{{result.recvSucCount}}</td>
                            <td>{{result.recvFailCount}}</td>
                            <td>{{result.recvNoneCount}}</td>
                            <!-- <td>{{result.upTotalCount}}</td> -->
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="contentTab" ng-show="now==1">
            <form class="form-inline clearfix">
                <div class="marT15 marR10 left">
                    <span class="search-name">时间选择</span>
                    <div class="controls">
                        <div class="input-prepend input-group">
                            <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input
                                type="text" readonly style="width: 155px" name="reservation" id="joinMonitorDate1"
                                class="form-control" value="2017-3-21 - 2017-5-21" />
                            <span class="input-group-addon" ng-click='clearTime1()'>清空</span>
                        </div>
                    </div>
                </div>
                <a class=" btn btn-primary btn-sm left marT15" ng-click='search1()'><span class="glyphicon glyphicon-search"></span></a>
                <div class="right marT15" style="position:relative">
                    <button class="btn btn-sm btn-primary" ng-click='outExcel1()'><img style="width:25px; height:20px;"
                            src="img/excel.png">导出表格<span ng-style='loadStyle1' class="outExcelLoad"><img src="img/load.gif"></span>
                    </button>
                </div>

            </form>

            <form method="post" id="form1" action="accessReport/out-excel-up">
                <input type="text" style="display: none;" ng-model='searchData1.startDate' name="startDate">
                <input type="text" style="display: none;" ng-model='searchData1.endDate' name="endDate">
            </form>

            <div class="table-box marT15">

                <table class="table table-bordered table-striped text-center bg-info">
                    <thead>
                        <tr class="info">
                            <th class="text-center">序号</th>
                            <th class="text-center w85">日期</th>
                            <!-- <th class="text-center w140">历史连接业务端数(个)</th>
            <th class="text-center w150">目前在连接业务端数(个)</th> -->
                            <th class="text-center w150">连接业务端数(个)</th>
                            <!--  <th class="text-center w115">共发短信(条)</th>
            <th class="text-center w140">峰值速率条(条/秒)</th> -->
                            <!--  <th class="text-center">缓存队列(条)</th> -->
                            <!-- <th class="text-center w140">发送成功短信(条)</th>
            <th class="text-center w140">发送失败短信(条)</th>
            <th class="text-center w85">发送成功率</th>
            <th class="text-center w140">用户接收成功短信(条)</th>
            <th class="text-center w140">用户接收失败短信(条)</th>
            <th class="text-center w140">待返回结果短信(条)</th> -->
                            <th class="text-center w140">接收短信(条)</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat='item in result1.list'>
                            <td>{{$index+1}}</td>
                            <td>{{item.sday}}</td>
                            <td>
                                <a ng-click=goBusiness()>{{item.svrNodeNum}}</a></td>
                            <!-- <td>{{item.total}}</td>
            <td>{{item.peakRate}}</td> -->
                            <!--  <td class="w115">{{item.}}</td> -->
                            <!--  <td>{{item.sendSuc}}</td>
            <td>{{item.sendFail}}</td>
            <td>{{item.sendSucRate}}</td>
            <td>{{item.recvSuc}}</td>
            <td>{{item.recvFail}}</td>
            <td>{{item.recvNone}}</td> -->
                            <td>{{item.upTotal }}</td>
                        </tr>



                        <tr>
                            <td colspan="2">汇总</td>
                            <td>{{result1.svrNodeCount}}</td>
                            <!--  <td>{{result.svrNodeCount}}</td>
            <td>{{result.totalCount}}</td>
            <td>{{result.peakRateCount}}</td>
            <td>{{result.sendSucCount}}</td>
            <td>{{result.sendFailCount}}</td>
            <td></td>
            <td>{{result.sendSucRateCount}}</td>
            <td>{{result.recvSucCount}}</td>
            <td>{{result.recvFailCount}}</td>
            <td>{{result.recvNoneCount}}</td> -->
                            <td>{{result1.upTotalCount}}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- <div class="contentTab" ng-show="now==2">Third tab content</div> -->
    </div>






</div>
<!-- 加载框 -->
<span class='loaded' ng-show='loaded'><img src="img/load.gif"></span>
<!-- 加载框 完成-->